To 'queer the pitch' means to spoil or ruin someone's plans or chances of success, often by making things more difficult or complicated for them. The phrase originates from British slang, where 'queer' means to spoil or ruin, and 'pitch' refers to a situation or opportunity.